﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using Model.EF;

public partial class sysapp_websitesetting_index : System.Web.UI.Page
{
    public setting modelset=new setting();
    IRepository<setting> settingRepository = new EntityRepository<setting>();
    protected void Page_Load(object sender, EventArgs e)
    {       
        if (!IsPostBack)
        {
            modelset = settingRepository.FindById(1);
            for (int i = 0; i < value_4.Items.Count; i++)
            {
                if (value_4.Items[i].Value == modelset.window_skin.ToString())
                {
                    value_4.Items[i].Selected = true;
                };
            }
        }
    }
}